#!/usr/bin/env node

let timer1 = setInterval(function(){
  console.log('timer1');
},500)

let timer2;
let count = 0;

setTimeout(function(){
  clearInterval(timer1);
  timer2 = setInterval(function(){
    console.log('timer2');
    count++;
    if(count>4){
      clearInterval(timer2);
    }
  },500)
},5000);

